package com.mk.aline.aspectjdemo.aspectjs;

import android.util.Log;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * Author：Administrator
 * Data: 2018/8/14 0014 14:12
 */

@Aspect
public class TraceAspect {
    private static final String TAG = "test";

    @Before("execution(* android.app.Activity.onC*(..))")
    public void onActivityMethodBefore(JoinPoint joinPoint) throws Throwable {
        String key = joinPoint.getSignature().toString();
        Log.e(TAG, "onActivityMethodBefore: 切面的点执行了！" + key);
    }
}
